package com.etone.autotesting.test;

import org.junit.Test;

import com.etone.autotesting.manager.impl.ConditionSearchManager;

public class AllServiceTestCase {

	@Test
	public void TestAllService() {

		StringBuilder builder = new StringBuilder();
		builder.append("{");
		builder.append("functionName:'test1'");
		builder.append(",serviceName:'com.etone.app.ssmp.webservice.ICallControlService'");
		builder.append(",methodName:'getCallControlData'");
		builder.append(",condition:[");
		builder.append("{name:'timeRange',type:'TIME',isNeed:true,value:[");
		builder.append("{startTime:'2011-11-17 19:55:00',endTime:'2011-11-17 20:00:00'},");
		builder.append("{startTime:'2011-11-17 20:55:00',endTime:'2011-11-17 21:00:00'}]}");
		
		builder.append(",{name:'kpiRange',type:'LIST',isNeed:true,value:[");
		builder.append("{id:407},");
		builder.append("{id:408}]}");
		
		builder.append(",{name:'protocolRange',type:'LIST',isNeed:false,value:[");
		builder.append("{id:32,name:'BSSAP'},");
		builder.append("{id:34,name:'RANAP'}]}");
		
		builder.append(",{name:'page',type:'VALUE',isNeed:true,value:[{batchSize:0,queryType:'QRS',pageNo:0,totalPage:0,maxResult:1000,totalCount:0,pageSize:0}");
		builder.append(",{batchSize:0,queryType:'QRC',pageNo:0,totalPage:0,maxResult:1000,totalCount:0,pageSize:0}]}");
		
		builder.append(",{name:'order',type:'VALUE',isNeed:true,value:[{orderType:'ASC'}]}");
		builder.append("]}");
		try {
			ConditionSearchManager.getInstance().addFunctionCondition(builder.toString());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
